setY

open fun setY(view: View, value: Float)(source)

Deprecated

Use setY directly.

Sets the visual y position of this view, in pixels. This is equivalent to setting the translationY property to be the difference between the y value passed in and the current top property of the view as determined by the layout bounds.

Parameters

view

view to set the position on.

value

The visual y position of this view, in pixels.